package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.PsInspectiontaskDetail;
import com.example.entity.PsInspectiontaskMain;
import com.example.mapper.PsInspectiontaskDetailMapper;
import com.example.mapper.PsSystemconfigMapper;
import com.example.service.PsInspectiontaskDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 伍彦端
 * @since 2024-04-24
 */
@Service
public class PsInspectiontaskDetailServiceImpl extends ServiceImpl<PsInspectiontaskDetailMapper, PsInspectiontaskDetail> implements PsInspectiontaskDetailService {
    @Resource
    private PsInspectiontaskDetailMapper inspectiontaskDetailMapper;
    /**
     * 根据条件查询
     *
     * @param psInspectiontaskDetail 巡检任务子表对象
     * @return
     */
    @Override
    public List<PsInspectiontaskDetail> show(Integer nowPage,Integer pageSize,PsInspectiontaskDetail psInspectiontaskDetail) {
        return inspectiontaskDetailMapper.show(nowPage,pageSize,psInspectiontaskDetail);
    }


    @Resource
    private PsInspectiontaskDetailMapper psInspectiontaskDetailMapper;


    @Override
    public List<PsInspectiontaskDetail> pslist(Integer isbug) {
        return psInspectiontaskDetailMapper.pslist(isbug);
    }

    @Override
    public List<PsInspectiontaskDetail> psidlist(Integer id) {
        return psInspectiontaskDetailMapper.psidlist(id);
    }

    @Override
    public List<PsInspectiontaskMain> chaxun(Integer id) {

        return psInspectiontaskDetailMapper.chaxu(id);
    }

    @Override
    public List<PsInspectiontaskDetail> chaxun2(String inspectionTaskCode, String inspectionTaskName) {
        return psInspectiontaskDetailMapper.chaxu2(inspectionTaskCode,inspectionTaskName);
    }
}
